import { createRouter, createWebHistory } from 'vue-router'
import Layout from '../views/Layout'
import User from '../views/user'
import Chat from '../views/chat'
import Login from '../views/login'
import Enter from '../views/enter'
const routes = [
  { path: '/', component: Layout },
  { path: '/user', component: User },
  { path: './chat', component: Chat },
  { path: './login', component: Login },
  { path: './enter', component: Enter }
]
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes
})

export default router